/**
 * @author yuyangyang
 * @time 2015/3/11
 */
var SportModel = require('../models/sport');


module.exports = {
    addSport: function (params, callback) {
        new SportModel(params).save(callback);
    },
    queryAll: function (callback) {
        SportModel.find(callback);
    },
    queryById: function (params, callback) {
        SportModel.findById(params)
            .exec(callback);
    }
}
